From: Arjan Molenaar Date: Mon, 5 Dec 2022 20:00:42 +0000 (+0100) Subject: macos: Use Command key symbol for meta X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~116^2^2~97^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=19aaa8fee54b42dc4e6e479f77d76c8ecc7ef07e;p=gtk4.git macos: Use Command key symbol for meta Show the Apple Command symbol ⌘ as keyboard shortcut for the Meta key on macos, similar to GtkAccelGroup. --- diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c index 906c15faa6..3da6006b70 100644 --- a/gtk/gtkshortcutlabel.c +++ b/gtk/gtkshortcutlabel.c @@ -144,7 +144,11 @@ get_labels (guint key, GdkModifierType modifier, guint *n_mods) if (modifier & GDK_HYPER_MASK) labels[i++] = C_("keyboard label", "Hyper"); if (modifier & GDK_META_MASK) +#ifndef GDK_WINDOWING_MACOS labels[i++] = C_("keyboard label", "Meta"); +#else + labels[i++] = C_("keyboard label", "⌘"); +#endif *n_mods = i;